package patterns.behavior.status;

public class BooKStatusYY extends BookStatus {

    public BooKStatusYY(){
    }

    @Override
    void rk(BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void pshds(BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void ck(BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void yd(BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void qxyd(BookContext bookContext) {
        bookContext.setBookStatus(bookContext.KJC);
        System.out.println("预约状态----[取消预定]---->可借出状态");
    }

    @Override
    void ydgq(BookContext bookContext) {
        bookContext.setBookStatus(bookContext.KJC);
        System.out.println("预约状态----[预定过期]---->可借出状态");
    }

    @Override
    void jc(BookContext bookContext) {
        bookContext.setBookStatus(bookContext.JC);
        System.out.println("预约状态---[通过借出]---->借出状态");
    }

    @Override
    void gh(BookContext bookContext) {
        System.out.println("cannot do anything!");
    }
}
